home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_05
/
8n05065a
< prev
next >
Wrap
Text File
|
1990-04-17
|
224b
|
17 lines
Listing 4
mvc(a,x,y,n,m,coln) int n,coln,m;
float x[],y[],a[];
/* y=ax matrix a(m,n) vector x */
{
int i,j,k;
float sum;
DOFOR(i,m)
{
sum=0.;
DOFOR(j,n) sum+= x[j]*a INDEX(i,j);
y[i]=sum;
}
return;
}